<?php

require __DIR__.'/../init.php';

if(!is_login()) {
    exit;
}

image_delete(get('id'));

echo_json_success('删除成功');